layui.use(['customUtil'], function () {
    var customUtil = layui.customUtil;
    var home = {

        _constans: {
            api: {
                querySystemInfo:appCtx+  "/systemInfo/querySystemInfo"
            }
        },

        _init: function () {
            let _this = this;
            _this._getSystemInfo();
        },

        _getSystemInfo: function () {
            let _this = this;
            customUtil.get(_this._constans.api.querySystemInfo, function (data) {
                if(data.success){
                    $("#system-info-java").html(data.result.javaVersion);
                    $("#system-info-tm").html(data.result.totalMemory);
                    $("#system-info-fm").html(data.result.freeMemory);
                    $("#system-info-os").html(data.result.osName);
                    $("#system-info-time").html(data.result.nowTime);
                }
            });
        },

    };

    home._init();
});